﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using System.Threading;
using System.Net;
using LikeTryCore;
using System.Web;
using LikeTryHacker;
using System.Runtime.Serialization.Formatters.Binary;
using System.IO;
using Contract;

namespace TesseractConsole
{
    class Program
    {
        private static string RemoveSymbol(string str)
        {
            StringBuilder sb = new StringBuilder();
            foreach (var c in str)
            {
                if (char.IsLetterOrDigit(c))
                {
                    sb.Append(c);
                }
            }

            return sb.ToString();
        }

        static void Main(string[] args)
        {
            List<LikeAccount> accountObj = null;
            try
            {
                accountObj = LikeTry.GetAccountList();
            }
            catch (Exception exp)
            {
                accountObj = new List<LikeAccount>();
            }

            foreach (var item in accountObj)
            {
                LikeTry tt = new LikeTry(item.Cookies);
                tt.KeepOnline();
                tt.Execute(1);
                //tt.SendConfirmOrUserFeel(FeelOrConfirm.Confirm);
                
                //tt.SendConfirmOrUserFeel(FeelOrConfirm.UserFeel);
            }

            Console.Read();
        }
    }
}